package org.lq.his.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.lq.his.dao.DoctorRankClassDao;
import org.lq.his.pojo.DoctorRankClass;
import org.lq.his.service.DoctorRankClassService;
import org.springframework.stereotype.Service;

@Service("doctorRankClassService")
public class DoctorRankClassImpl implements DoctorRankClassService {
	@Resource
	private DoctorRankClassDao doctorRankClassDao;
	

	public void setDoct(DoctorRankClassDao doctorRankClassDao) {
		this.doctorRankClassDao = doctorRankClassDao;
	}


	@Override
	public List<DoctorRankClass> getListByCondition(int start, int limit, DoctorRankClass condition, String column,
			String orderBy) {
		return doctorRankClassDao.getListByCondition(start, limit, condition, column, orderBy);
	}


	@Override
	public int getCountByCondition(DoctorRankClass condition) {
		
		return doctorRankClassDao.getCountByCondition(condition);
	}


	@Override
	public void add(DoctorRankClass doctorRankClass) {
		doctorRankClassDao.add(doctorRankClass);
		
	}


	@Override
	public void update(DoctorRankClass doctorRankClass) {
		doctorRankClassDao.update(doctorRankClass);
		
	}


	@Override
	public DoctorRankClass getById(Integer id) {
		return doctorRankClassDao.getById(id);
	}


	@Override
	public void updateLeave(Integer[] ids) {
		doctorRankClassDao.updateLeave(ids);
	}


	@Override
	public void deleteDoctorRankClass(Integer[] ids) {
		doctorRankClassDao.deleteByIds(ids);
		
	}

}
